package Zouye;

import java.util.Arrays;

public class Shuzu2 {
    public static void main(String[] args) {
        int arr[]=new int[10];
        for (int b=0;b<arr.length;b++){
            arr[b]=(int)(Math.random()*100);
            System.out.println(arr[b]);
        }
        Arrays.sort(arr);
        System.out.println("排序后:");
        for (int b=0;b<arr.length;b++){
            System.out.println(arr[b]);

        }

        }

    }

